$(function() {

	var docTypeElement, docType, query;
	var clazz;

	// $.fn.extend
	docTypeElement = $('div[class*=_je_]');

	for(var i=0; i < docTypeElement.length; i++){
		docType = docTypeElement.eq(i)
			.attr('class')
			.match(/_je_.*?\b/)[0]
			.replace('_je_','_je/');

		query = docTypeElement.eq(i)
			.find('span._je_query').eq(0)
			.text()
			.trim();
	
		console.log(docTypeElement.eq(i))
		console.log(docType + query)
	}

$._GET   (option, success, error);
$._POST  (option, success, error);
$._PUT   (option, success, error);
$._DELETE(option, success, error);

$('._je_messages')._LOAD(success, error);

$('._je_messages')._GET   ($('._je_messages_form'), success, error);
$('._je_messages')._POST  ($('._je_messages_form'), success, error);
$('._je_messages')._PUT   ($('._je_messages_form'), success, error);
$('._je_messages')._DELETE($('._je_messages_form'), success, error);

$('._je_messages')._GET($('._je_messages_search'), success, error);

$('._je_messages_listform');
$('._je_messages')._POST($('._je_messages_jsonform'), success, error);

});
